package com.sx.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sx.bean.PtOrgan;
import com.sx.service.PtOrganService;

@Controller
public class PtOrganController {
	@Autowired
	private PtOrganService  ptorganservice;

	public PtOrganService getPtorganservice() {
		return ptorganservice;
	}

	public void setPtorganservice(PtOrganService ptorganservice) {
		this.ptorganservice = ptorganservice;
	}
	
//	@RequestMapping("/duty/insert")
//	@ResponseBody
//	public List<PtOrgan>  selectOragnAll(){
//		System.out.println("1111111111111111111111111111111");
//		List<PtOrgan>  list	= ptorganservice.selectAll();
//		System.out.println(list);
//		return list;
//	}
	
	
	
}
